# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=postgresql-bdr-extension0.9
pkgver=0.9.0
pkgrel=0
pkgdesc="PostgreSQL bidirectional replication (BDR) extension"
url="https://wiki.postgresql.org/wiki/BDR_Administration"
arch="all"
license="GPL"
makedepends="$depends_dev postgresql-bdr-dev"
subpackages="$pkgname-doc"
# FIXME: mkdir: can't create directory 'tmp_check/data': File exists
options="!check"
source="http://packages.2ndquadrant.com/postgresql-bdr94-2ndquadrant/tarballs/bdr-$pkgver.tar.bz2"
builddir="$srcdir/bdr-$pkgver"

build() {
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-bdr
	make
}

check() {
	make DESTDIR="$pkgdir" check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="00497a67969d748cdefac3049939e2d1fbd360d8f2ab86574743dd1e5fa0d3c5b1de2571acf7bc0da24d257c93da9db26d3fb2abd7eb1029effeed189d362ac7  bdr-0.9.0.tar.bz2"
